package com.action.blog.black;

import java.util.*;
import com.db.blog.black.*;
import com.opensymphony.xwork2.ActionContext;

public class BlackListAction {

	private List<blackListVO> blacklist = new ArrayList<blackListVO>();
	private blackListManager black;

	public blackListManager getBlack() {
		return black;
	}

	public void setBlack(blackListManager black) {
		this.black = black;
	}

	public List<blackListVO> getBlacklist() {
		return blacklist;
	}

	public String execute() throws Exception {

		Map session = ActionContext.getContext().getSession();

		blacklist = black.blackListData((String) session.get("login"));
		return "success";
	}
}
